package com.des1gn.ymgetil.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum YmBigTypeEnums {

    HPV("hpv","1");

    private String desc;

    private String code;


    public static String getCode(String desc){
        for (YmBigTypeEnums data : YmBigTypeEnums.values()){
            if (data.getDesc().equals(desc)){
                return data.getCode();
            }
        }
        return null;
    }

}
